import rest from '@/api/request'
//薪资列表
export function getWagesList(page: number, pageSize: number, departmentChecks: any, approvalsTypeChecks: any) {
    return rest.get(`salarys/list?page=${page}&pageSize=${pageSize}&approvalsTypeChecks=${approvalsTypeChecks}&departmentChecks=${departmentChecks}`)
}
//员工定薪
export function setWages(userId: string, data: any) {
    return rest.post(`/salarys/init/${userId}`, data)
}
//查询用户薪资
export function getUserWages(userId: string) {
    return rest.get(`/salarys/modify/${userId}`)
}
//调薪
export function setWagesModify(userId: string, data: any) {
    return rest.post(`/salarys/modify/${userId}`, data)
}
// 保存企业计薪及津贴设置
export function setWagesSetting(data: any) {
    return rest.post('/salarys/settings', data)
}